package com.wyd.note.business.dict;

import com.wyd.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

@ApiModel("词典")
@ToString //(callSuper = true)
@EqualsAndHashCode// (callSuper = true)
@Getter
@Setter
@Entity
@Table(name = "dict")
public class Dict extends BaseEntity {
    @ApiModelProperty("中文解释")
    @NotBlank(message = "中文解释不能为空")
    @Column(length = 100)
    private String chinese;

    @ApiModelProperty("英文")
    @NotBlank(message = "英文不能为空")
    @Column(length = 100)
    private String english;
}
